package org.jiangpeng.customer.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author jiangpeng
 * @date 2018/10/22 18:50
 */
@javax.servlet.annotation.WebServlet("/WebServlet")
public class WebServlet extends HttpServlet {

    private static final Logger LOGGER = LoggerFactory.getLogger(WebServlet.class);

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        this.doPost(req, resp);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        LOGGER.debug("111111111111111");
    }
}
